//
// Created by dg on 2023/12/29.
//
// https://cloud.tencent.com/developer/article/1035505

#ifndef MY_APPLICATION_EGLHELPER_H
#define MY_APPLICATION_EGLHELPER_H

#include <EGL/egl.h>

class EglHelper {
public:
    EGLDisplay mEglDisplay;
    EGLSurface mEglSurface;
    EGLConfig mEglConfig;
    EGLContext mEglContext;

public:
    EglHelper();
    ~EglHelper();

    int initEgl(EGLNativeWindowType win);
    int swapBuffers();
    void destroyEgl();
};


#endif //MY_APPLICATION_EGLHELPER_H
